import 'package:shared_preferences/shared_preferences.dart';

class JrSP {
  static SharedPreferences? _instance;

  static SharedPreferences get instance {
    if (_instance == null) {
      throw Exception('JrSP must be initialized with init() before using instance.');
    }
    return _instance!;
  }

  static Future<void> init() async {
    _instance = await SharedPreferences.getInstance();
  }
}